.class Lcom/waiqin365/h5/io/b;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/waiqin365/h5/io/WqFileExplorer;


# direct methods
.method constructor <init>(Lcom/waiqin365/h5/io/WqFileExplorer;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/h5/io/b;->a:Lcom/waiqin365/h5/io/WqFileExplorer;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 3

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/h5/io/b;->a:Lcom/waiqin365/h5/io/WqFileExplorer;

    invoke-virtual {v0, v1}, Ljava/util/Observable;->addObserver(Ljava/util/Observer;)V

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/h5/io/b;->a:Lcom/waiqin365/h5/io/WqFileExplorer;

    invoke-static {v1}, Lcom/waiqin365/h5/io/WqFileExplorer;->a(Lcom/waiqin365/h5/io/WqFileExplorer;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v1

    const-class v2, Lcom/waiqin365/lightapp/im/activity/SelectFileActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "returnTo"

    iget-object v2, p0, Lcom/waiqin365/h5/io/b;->a:Lcom/waiqin365/h5/io/WqFileExplorer;

    iget-object v2, v2, Lcom/waiqin365/h5/io/WqFileExplorer;->a:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/h5/io/b;->a:Lcom/waiqin365/h5/io/WqFileExplorer;

    invoke-static {v1}, Lcom/waiqin365/h5/io/WqFileExplorer;->b(Lcom/waiqin365/h5/io/WqFileExplorer;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    const-string/jumbo v1, "filepath"

    iget-object v2, p0, Lcom/waiqin365/h5/io/b;->a:Lcom/waiqin365/h5/io/WqFileExplorer;

    invoke-static {v2}, Lcom/waiqin365/h5/io/WqFileExplorer;->b(Lcom/waiqin365/h5/io/WqFileExplorer;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    :cond_0
    iget-object v1, p0, Lcom/waiqin365/h5/io/b;->a:Lcom/waiqin365/h5/io/WqFileExplorer;

    invoke-static {v1}, Lcom/waiqin365/h5/io/WqFileExplorer;->a(Lcom/waiqin365/h5/io/WqFileExplorer;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v1

    invoke-virtual {v1, v0}, Lorg/apache/cordova/WqCordovaActivity;->startActivity(Landroid/content/Intent;)V

    return-void
.end method
